package com.img.test;

//懒汉模式
public class Singleton1 {
    private static Singleton1 s = null;
    private Singleton1(){}
    public static Singleton1 getInstance1(){
        if(s == null){
            s = new Singleton1();
        }
        return s;
    }
}
